print("从小到大依次输入三个钉子的位置:")
a1=input("输入第一跟钉子位置")
a2=input("输入第二根钉子位置")
a3=input("输入第三根钉子位置")
n1=int(a2)-int(a1)
n2=int(a3)-int(a2)
if n1<=n2:
    print("-1")
if n1>n2:
    b1=2*(n1-n2)
    c1=1
    b3=n1-n2
    c3=1
    b2=n1-b1
    c2=1
    if b1 > 0 and b2 > 0 and b3 > 0 and c1 > 0 and c2 > 0 and c3 > 0:
        print( b1, c2, b2, c2, b3, c3)
    if b1 <= 0 or b2 <= 0 or b3 <= 0 or c1 <= 0 or c2 <= 0 or c3 <= 0:
        print("-1")
